package bsr.basara.autodata.service.impl;

import bsr.basara.autodata.dao.ColumnInfoRepository;
import bsr.basara.autodata.entity.ColumnInfo;
import bsr.basara.autodata.service.ColumnInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author basara
 */
@Service
public class ColumnInfoServiceImpl implements ColumnInfoService {

    @Autowired
    ColumnInfoRepository columnInfoRepository;

    @Override
    public Iterable<ColumnInfo> findByTableId(Long tableId) {

        return columnInfoRepository.findByTableId(tableId);
    }

}
